package edu.sysu.cshare.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import edu.sysu.cshare.DAO.HomeworkDAO;
import edu.sysu.cshare.model.Homework;

@Service
public class HomeworkService {
	
	private HomeworkDAO homeworkDAO;

	@Resource
	public void setHomeworkDAO(HomeworkDAO homeworkDAO) {
		this.homeworkDAO = homeworkDAO;
	}

	public Homework get(long id) {
		return homeworkDAO.get(id);
	}

	public void update(Homework homework) {
		homeworkDAO.update(homework);
	}

}
